import request from '../../utils/request'

    /**
     * 分页查询提现申请
     *
     * @param status
     * @return
     */
export async function queryPresentRecordsPage({ status, page}){
    return request(apiPath.mc + "/api/presentrecords",{
        method: 'get',
        data: { status, page: page.page, size: page.size }
    });
}

     /**
     * 新增提现申请
     *
     * @param presentRecordForm
     * @return
     */
export async function createPresentRecord(data){
    return request( apiPath.mc + "/api/presentrecord",{
        method: 'post',
        data
    })
}    

    /**
     * 更新提现申请
     *
     * @param presentRecordForm
     * @return
     */
export async function updatePresentRecord(data){
    return request(apiPath.mc + "/api/presentrecord",{
        method: 'put',
        data
    })
}

    /**
     * 删除提现申请
     *
     * @param id
     * @return
     */
export async function deletePresentRecord({ id }){
    return request(apiPath.mc + "/api/presentrecord/" + id ,{
        method: 'delete'
    })
}    

    /**
     * 按id查询提现申请
     *
     * @param id
     * @return
     */
export async function getPresentRecord({id}){
    return request(apiPath.mc+ "/api/presentrecord/" + id,{
        method: 'get'
    })
}    